package PSS;

/*
public class Dog {
    String name;
    int age;
    float weight;
    public void eat(){
        System.out.println(name+"正在吃饭");
    }
    public void sleep(){
        System.out.println(name+"正在睡觉");
    }
    void bark(){
        System.out.println(name+"汪汪汪");
    }
}
*/
public class Dog extends Animal{
    public Dog(String name, int age) {
        super(name, age);
    }

    @Override
    public void eat() {
        System.out.println(name+"吃骨头");
    }

    @Override
    public void sleep() {
        System.out.println(name+"躺着睡");
    }

    void bark(){
        System.out.println(name+"汪汪叫");
    }
}
